import Admin from "../pages/admin/admin";
import Echart from "../pages/echarts";
import Home from "../pages/home";
import Detail from "../pages/login/detail";
import Login from "../pages/login/index";
import NotFound from "../pages/notfound/index";
import Order from "../pages/order/index";
import OrderList from "../pages/order/order";
import Poetry from "../pages/poetry";
import PoetryList from "../pages/poetry/poetrylist";
import User from "../pages/user/index";
import UserAudio from "../pages/user/useraudio";
import UserFile from "../pages/user/userfile";
import UserVideo from "../pages/user/uservideo";
export const mainRoutes = [
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/notfound",
    component: NotFound,
  },
  {
    path: "/",
    component: Login,
  },
];
export const adminRoutes = [
  {
    path: "/echarts",
    exact: true,
    component: Echart,
  },
  {
    path: "/admin",
    component: Admin,
    exact: true,
    title: "人员管理",
  },
  {
    path: "/home",
    component: Home,
    exact: true,
    title: "首页",
    children: [
      {
        path: "/admin",
        component: Admin,
        exact: true,
        title: "人员管理",
      },
    ],
  },
  {
    path: "/detail",
    component: Detail,
    exact: true,
    title: "详情",
  },
  {
    path: "/poetry",
    exact: true,
    component: Poetry,
  },
  {
    path: "/poetrylist",
    exact: true,
    component: PoetryList,
  },
  {
    path: "/user",
    exact: true,
    component: User,
  },
  {
    path: "/useraudio",
    exact: true,
    component: UserAudio,
    title: "个人语音",
  },
  {
    path: "/uservideo",
    exact: true,
    component: UserVideo,
    title: "个人视频",
  },
  {
    path: "/userfile",
    exact: true,
    component: UserFile,
    title: "个人文件",
  },
  {
    path: "/order",
    exact: true,
    component: Order,
    title: "订单列表",
  },
  {
    path: "/orderlist",
    exact: true,
    component: OrderList,
    title: "订单审核",
  },
];
